package com.jch.eduservice.controller;

import com.jch.commonutils.R;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/eduservice/user")
@CrossOrigin
public class EduLoginController {
    //login
    @PostMapping("/login")
    public R login(){
        return R.ok().data("token","admin");
    }

    //info
    @GetMapping("/info")
    public R info(){
        return R.ok().data("roles","[admin]").data("name","admin").data("avatar","https://ts1.cn.mm.bing.net/th/id/R-C.70dccebca63db0084fe837661c2f1188?rik=7EUd9SX%2f%2bFfM8w&riu=http%3a%2f%2fimg.touxiangwu.com%2f2020%2f3%2fqYnyEf.jpg&ehk=cAGDvie9YcffJ%2bpCklMo8qxAYwdbJVDb4Os4uszvuyo%3d&risl=&pid=ImgRaw&r=0");
    }
}
